<?php

use yii\widgets\ActiveForm;
use yii\helpers\Html;

/* @var $this yii\web\view */
/* @var $model common\models\Email */

$this->title = 'Send Email';
$this->params['breadcrumbs'][] = ['label' => 'Email', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<h2 class="page-header"><?= Html::encode($this->title) ?></h2>

<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>

<?= $form->field($model, 'receiver_name') ?>

<?= $form->field($model, 'receiver_email') ?>

<?= $form->field($model, 'subject') ?>

<?= $form->field($model, 'content')->textarea() ?>

<div class="form-group">
    <label class="control-label">Attachment</label>
    <input type="file" name="attachment">
</div>

<button type="submit" class="btn btn-primary">Send Email</button>

<?php ActiveForm::end() ?>
